@charset "utf-8";

*{
  margin:0;
  padding:0;
}
#categorywrap{
  font-family: "微软雅黑";
	width:100%;
  height:100%;
	padding-top: 1rem;
  overflow: hidden;
}
ul,ol,li{
	list-style: none;
}
/*搜索框*/
#categorywrap #header{
	width:100%;
	height:1rem;
	/*background: rgba(0,0,0,0);*/
	background: #ffd600;
	display: flex;
	position: fixed;
	top:0;
	left:0;
	z-index: 2;
}
#categorywrap #header .scan{
	font-size: 0.28rem;
	flex-basis: 25%;
	margin-top: 0.3rem;
	padding-left: 0.2rem;
}
#categorywrap #header p{
	line-height: 1rem;
	flex-basis: 70%;
	font-size: 0.28rem;
	font-weight: bold;
}
#categorywrap #header div{
	flex-basis: 10%;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}
#categorywrap #header div img{
	width:0.4rem;
	height:0.4rem;
}
#categorywrap #header div span{
	font-size: 0.12rem;
}
/*左侧导航修饰*/
#categorywrap #content{
  padding-left: 26%;
}
#categorywrap #nav{
  width:25%;
  height:10rem;
  background: #f6f6f6;
  overflow: auto;
  position: fixed;
  top:1rem;
  left:0;
}
#categorywrap #nav ul{
  width:100%;
  padding-bottom: 0.7rem;
}
#categorywrap #nav ul li{
  font-size: 0.28rem;
  color:gray;
  height:1rem;
  line-height: 1rem;
  text-align: center;
  border-bottom: 1px solid lightgray;
}
#categorywrap #nav ul li:nth-of-type(2){
  background: url(../../img/hot.png) no-repeat right top;
  background-size: 40%;
}
#categorywrap #nav ul li .spans{
  display: inline-block;
  width:100%;
  height:0.8rem;
  line-height: 0.8rem;
  border-left: 5px solid #ffd600;
}
/*具体内容修饰*/
#categorywrap #itemwrap{
  width:73%;
  height: 9rem;
  overflow: auto;
  padding-top: 1rem;
  position: fixed;
  /*top:2.05rem;*/
  left:26%;
}
#categorywrap #itemwrap #select{
  height:1rem;
  font-size: 0.28rem;
  color:gray;
  background:rgba(255, 255, 255, 1);
  border-bottom: 1px solid lightgray;
  display: flex;
  align-items: center;
  text-align: center;
  position: fixed;
  top:1rem;
  left:26%;
  z-index: 2;
}
#categorywrap #itemwrap #select p{
  width:2.2rem;
}
#categorywrap #itemwrap #select span{
  width:0.3rem;
}
/*点击弹出框的修饰*/
#categorywrap #showOrHidden{
  font-size: 0.28rem;
  color:gray;
  width:74%;
  height:8.3rem;
  background: rgba(156,156,156,0.5);
  position: fixed;
  top:2.05rem;
  left:26%;
  z-index: 5;
  display: none;
}
#categorywrap #showOrHidden .hidden{
  background: white;
  flex-wrap: wrap;
  padding-bottom: 0.2rem;
  display: none;
}
#categorywrap #showOrHidden .hidden p{
  height:0.5rem;
  line-height: 0.5rem;
  border: 1px solid lightgray;
  border-radius: 10%;
  margin-top: 0.2rem;
  margin-left: 0.15rem;
  padding-left:0.1rem;
  padding-right: 0.1rem;
  display: inline-block;
}
#categorywrap #showOrHidden .hidden p:first-of-type{
  background: lightyellow;
  border:1px solid #ffd600;
}
/*具体商品修饰*/
#categorywrap #divwrap{
	display: flex;
	flex-direction: column;
  position: relative;
}
#categorywrap #divwrap .divs{
  width:100%;
  display: none;
  background: white;
  padding-bottom: 0.7rem;
  position:absolute;
  top:0;
  left:0;
}
#categorywrap #divwrap .divs:first-of-type{
  /*z-index: 3;*/
}
#categorywrap #divwrap .div{
	font-size: 0.1rem;
  border-bottom: 1px solid lightgray;
	display: flex;
}
#categorywrap #divwrap .div img{
	width:1.6rem;
	height:1.6rem;
  margin-right: 0.2rem;
  margin-top: 0.3rem;
}
#categorywrap #divwrap .div .text{
  width:2.9rem;
  padding-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
#categorywrap #divwrap .div .text .title{
  font-size: 0.24rem;
  color:#232b33;
  width:2.5rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 0.2rem;
}
#categorywrap #divwrap .div .text .p{
	color:red;
	width:0.6rem;
	height:0.3rem;
  line-height: 0.3rem;
	border: 1px solid red;
	border-radius: 5px;
	text-align: center;
	display: inline-block;
	margin-right: 0.1rem;
}
#categorywrap #divwrap .div .text .pp{
	width:0.6rem;
	height:0.3rem;
	display: inline-block;
	margin-right: 0.3rem;
	margin-bottom: 0.15rem;
}
#categorywrap #divwrap .div .text .youhui{
  width:1.1rem;
  height:0.3rem;
  line-height: 0.3rem;
	color: white;
	background: red;
  text-align: center;
	border-radius: 5px;
	margin-bottom: 0.2rem;
}
#categorywrap #divwrap .div .text .you{
  width:1.1rem;
  height:0.3rem;
	margin-bottom: 0.2rem;
}
#categorywrap #divwrap .div .text .mass{
	width:100%;
	color: gray;
	margin-bottom: 0.2rem;
}
#categorywrap #divwrap .div .text .price{
	color:red;
	margin-bottom: 0.25rem;
	margin-right: 0.1rem;
}
#categorywrap #divwrap .div .text .oldprice{
	color: gray;
	text-decoration: line-through;
}
#categorywrap #divwrap .div .text .reduce{
	font-size: 0.5rem;
	font-weight: bold;
	color: red;
	text-align: center;
	width:0.5rem;
	height: 0.5rem;
	line-height: 0.4rem;
	border: 1px solid gray;
	border-radius: 50%;
	position: absolute;
	bottom: 0.25rem;
	right:1rem;
  display: none;
}
#categorywrap #divwrap .div .text .n{
  position: absolute;
	bottom: 0.4rem;
	right:0.7rem;
  display: none;
}
#categorywrap #divwrap .div .text .add{
	font-size: 0.5rem;
	font-weight: bold;
	color: red;
	text-align: center;
	width:0.5rem;
	height: 0.5rem;
	line-height: 0.4rem;
	border: 1px solid gray;
	border-radius: 50%;
	position: absolute;
	bottom: 0.25rem;
	right:0.1rem;
}
